package cn.kgc.service;

import cn.kgc.entity.DataDictionary;

import java.util.List;

public interface DataDictionaryService {

    /**
     * 根据字典类别编码和字典值查询字典对象
     * @param typeCode  类别编码
     * @param valueId   字典值
     * @return          字典对象
     */
    public DataDictionary findDataDictionary(String typeCode,Integer valueId);

    /**
     * 根据typeCode查询DataDictionary
     * @param typeCode
     * @return
     */
    List<DataDictionary> selectByType(String typeCode);
}
